package com.yunxi.service.localService.impl.otd;

import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.otd.OtdWeekUploadMapper;
import com.yunxi.model.otd.OtdWeekUpload;
import com.yunxi.service.localService.otd.OtdWeekUploadService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 周度需求计划 服务实现类
 * </p>
 *
 * @author
 * @since 2019-05-09
 */
@Service
public class OtdWeekUploadServiceImpl extends ServiceImplPlus<OtdWeekUploadMapper, OtdWeekUpload> implements
    OtdWeekUploadService {
    @Override
    public void confirmW1Plan(String weekUploadCode) {
    }

    @Override
    public boolean isExistUpload(String year, String month,String week) {
        return baseMapper.isExistUpload(year, month,week) == 0 ? true : false;
    }

    @Override
    public void updateWeekUploadSumNum(String weekUploadCode){
        baseMapper.updateUploadWeekSumNum(weekUploadCode);
    }

    @Override
    public OtdWeekUpload findWeekUploadByWeek(String year, String month, String week) {
        return baseMapper.selectWeekUploadByWeek(year, month, week);
    }


}
